
import gql from 'graphql-tag';

export const SITE_INFO = gql`
query getSite {
  site {
    name
  }
}
`

export const POSTS_BY_CATEGORY = gql`
  query ($category: String!) {
    postsByCategory(category: $category) {
      title
      slug
      content
      isPublished
      isFeatured
      createdAt
    }
  }
`;